<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>并集选择器</title>
  <style>
    .beauty{
      color: blue;
    }
    .rich{
      color: gold;
    }
    .dog{
      color: green;
    }
    .pig{
      color: chocolate;
    }
    .beauty,
    .rich,
    .dog,
    .pig{
      font-size: 20px;
      background-color: gray;
      width: 100px;
    }
  </style>
</head>
<body>
  <h2 class="beauty">明星张三</h2>
  <h2 class="rich">土豪王五</h2>
  <br>
  <p class="dog">小狗旺财</p>
  <p class="pig">小猪佩奇</p>
  <br>

</body>
</html>
